package com.ctshk.rpc.finance.req.supplier;

import com.ctshk.common.model.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * 供应商往来订单列表Req
 */
@Data
@ApiModel(value = "SupplierOrderListReq",description = "供应商往来订单列表Req")
public class SupplierOrderListReq extends PageReq implements Serializable {

    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型（1 预订 2 退订）",required = true)
    private Integer type;

    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;

    @ApiModelProperty(value = "预订类型")
    private Long reserveTypeId;

    @ApiModelProperty(value = "审核状态")
    private Integer checkStatus;

    @ApiModelProperty(value = "币种ID")
    private Long currencyId;

    @ApiModelProperty(value = "产品编号")
    private String productNumber;

    @ApiModelProperty(value = "供应商预订单号")
    private String orderNumber;

    @ApiModelProperty(value = "付款类型ID")
    private Long payTypeId;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "开始创建时间")
    private LocalDate fromGmtCreate;

    @ApiModelProperty(value = "结束创建时间")
    private LocalDate toGmtCreate;

}
